//
//  HBActionSheet.h
//  HBActionSheet
//
//  Created by 韩冰 on 2017/10/23.
//  Copyright © 2017年 韩冰. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HBPopView.h"

typedef NS_ENUM(NSUInteger, HBSheetType) {
    HBSheetTypeNormal = 0,//有标题，有取消键
    HBSheetTypeNoTitle = 1,//没有标题,有取消按键
    HBSheetTypeNoCancel = 2,//有标题，无取消
    HBSheetTypeNoTitleAndCancel = 3,//无标题，无取消
};

typedef void(^HBItemHandler)(NSInteger index);
@interface HBSheetView : HBPopView

@property (nonatomic, assign)CGFloat titleHeight;//标题高度
@property (nonatomic, strong)UIColor *titleColor;//标题的颜色
@property (nonatomic, strong)UIFont *titleFont;//标题字体大小
@property (nonatomic, assign)CGFloat lineHeight;//线高
@property (nonatomic, strong)UIColor *lineColor;//线的颜色
@property (nonatomic, assign)CGFloat buttonHeight;//选择按钮高度;
@property (nonatomic, strong)UIColor *buttonTitleColor;//按钮标题的颜色
@property (nonatomic, strong)UIFont *buttonFont;//按钮字体大小
@property (nonatomic, strong)UIColor *cancleColor;//取消按钮颜色
@property (nonatomic, strong)UIColor *padColor;//按钮标题的颜色
@property (nonatomic, assign)CGFloat padHeight;//取消按钮与其他按钮之间的距离
@property (nonatomic, copy)HBItemHandler handler;//点击回调Block
@property (nonatomic, assign)HBSheetType sheetType;//类型


- (id)initWithTitle:(NSString *)title withButtonArray:(NSArray *)buttonArray withCancleButton:(NSString *)cancelTitle sheetType:(HBSheetType)sheetType handler:(void (^)(NSInteger index))handerAction;


@end
